#!/bin/bash

# 1: running
# 0: stopped

running_or_not() {
    cnt_drs_web=`ps -ef | grep "runserver" | grep "/usr/bin/python" |  grep -v "grep" | wc -l`
    if [[ $cnt_drs_web -lt 1 ]]; then
        echo "0";exit 0
    else
        echo "1";exit 0
    fi
}

if [ -d "${DRS_WEB_PATH}" ]; then
    running_or_not
fi

